package com.bite.book.model;

import lombok.Data;

/**
 * 请求页面
 */
@Data
public class RequestPage {
    private Integer currentPage = 1;
    private Integer pageSize = 10;

    //封装一个方法
    public Integer getOffset(){
        return (currentPage - 1) * pageSize;
    }
}
